# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=vmap
pkgver=0.3
pkgrel=1
groups=('blackarch' 'blackarch-exploitation')
pkgdesc='A Vulnerability-Exploit desktop finder.'
url='https://github.com/git-rep/vmap'
license=('GPL')
arch=('x86_64' 'aarch64')
depends=('qt5-base' 'qt5-svg' 'libxml++' 'curl')
source=("https://github.com/git-rep/vmap/archive/v$pkgver.tar.gz")
sha512sums=('1c87654a60f85d4d4b6b548bac30284d9b801b0b')

build() {
  cd "$pkgname-$pkgver"

  qmake

  make
}

package() {
  cd "$pkgname-$pkgver"

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

